const equipment = {
    //分为2层，一级的菜单名称和二级的权限列表
    work: ""
}
const dataComponent =
    // 查询条件dataModel
    [{
            type: 'input',
            label: '员工编号',
            model: 'title',
            keyUpEnter: 'handleFilter',
            span: 6
        },
        {
            type: 'input',
            label: '姓名',
            model: 'name',
            keyUpEnter: 'handleFilter',
            span: 6
        },
        {
            type: 'cascader',
            label: '手机号',
            model: 'deparment',
            options: [{
                value: 'zhinan',
                label: '指南',
                children: [{
                    value: 'shejiyuanze',
                    label: '设计原则',
                    children: [{
                        value: 'yizhi',
                        label: '一致'
                    }, {
                        value: 'fankui',
                        label: '反馈'
                    }]
                }, {
                    value: 'daohang',
                    label: '导航',
                    children: [{
                        value: 'cexiangdaohang',
                        label: '侧向导航'
                    }, {
                        value: 'dingbudaohang',
                        label: '顶部导航'
                    }]
                }]
            }, {
                value: 'zujian',
                label: '组件',
                children: [{
                    value: 'basic',
                    label: 'Basic',
                    children: [{
                        value: 'layout',
                        label: 'Layout 布局'
                    }, {
                        value: 'color',
                        label: 'Color 色彩'
                    }]
                }, {
                    value: 'form',
                    label: 'Form',
                    children: [{
                        value: 'radio',
                        label: 'Radio 单选框'
                    }, {
                        value: 'checkbox',
                        label: 'Checkbox 多选框'
                    }, {
                        value: 'input',
                        label: 'Input 输入框'
                    }, {
                        value: 'input-number',
                        label: 'InputNumber 计数器'
                    }]
                }, {
                    value: 'data',
                    label: 'Data',
                    children: [{
                        value: 'table',
                        label: 'Table 表格'
                    }, {
                        value: 'tag',
                        label: 'Tag 标签'
                    }]
                }, {
                    value: 'notice',
                    label: 'Notice',
                    children: [{
                        value: 'alert',
                        label: 'Alert 警告'
                    }, {
                        value: 'loading',
                        label: 'Loading 加载'
                    }]
                }, {
                    value: 'navigation',
                    label: 'Navigation',
                    children: [{
                        value: 'menu',
                        label: 'NavMenu 导航菜单'
                    }, {
                        value: 'tabs',
                        label: 'Tabs 标签页'
                    }]
                }, {
                    value: 'others',
                    label: 'Others',
                    children: [{
                        value: 'dialog',
                        label: 'Dialog 对话框'
                    }, {
                        value: 'tooltip',
                        label: 'Tooltip 文字提示'
                    }]
                }]
            }, {
                value: 'ziyuan',
                label: '资源',
                children: [{
                    value: 'axure',
                    label: 'Axure Components'
                }]
            }],
            span: 6

        }, {
            type: 'input',
            label: '归属部门',
            model: 'title',
            keyUpEnter: 'handleFilter',
            span: 6
        },
        {
            type: 'input',
            label: '职位',
            model: 'name',
            keyUpEnter: 'handleFilter',
            span: 6
        },
        {
            type: 'select',
            label: '账号类型',
            model: 'importance',
            option: [1, 2, 3],
            span: 6

        }
    ]
const tableColumn = [{
        key: 'id',
        event: null,
        label: "字段ID"
    }, {
        key: 'personId',
        event: null,
        label: "字段名称"

    }, {
        key: 'personName',
        event: null,
        label: "字段类型"

    }, {
        key: 'rule',
        event: null,
        label: "字段规则"
    }, {
        key: 'placeholder',
        event: null,
        label: "提示语"

    }, {
        key: 'isBasic',
        event: null,
        label: "选填/必填"

    }, {
        key: 'operate',
        event: null,
        label: "操作"

    }]
    // 搜索相关字段
const dataModel = {
    page: 1,
    limit: 20,
    importance: 1,
    title: "1",
    type: 1,
    sort: '+id',
    date: 1,
    startDate: 1,
    endDate: 1
}

const repairedInfo = {
    title: '',
    formModel: {
        page: 1,
        limit: 20,
        importance: undefined,
        title: undefined,
        type: undefined,
        sort: '+id',
        date: undefined,
        startDate: undefined,
        endDate: undefined
    },
    formComponent: [{
        type: 'input',
        span: 12,
        label: '姓名',
        model: 'title',
        keyUpEnter: 'handleFilter',
        placeholder: "多个故障种类用英文逗号分隔",
        rules: [{ required: true, message: '故障种类配置', trigger: 'blur' }]
    }, {
        type: 'input',
        label: '手机号',
        model: 'title',
        span: 12,
        keyUpEnter: 'handleFilter',
        placeholder: "多个故障种类用英文逗号分隔",
        rules: [{ required: true, message: '故障种类配置', trigger: 'blur' }]
    }, {
        type: 'input',
        label: '归属部门',
        model: 'title',
        span: 12,
        keyUpEnter: 'handleFilter',
        placeholder: "多个故障种类用英文逗号分隔",
        rules: [{ required: true, message: '故障种类配置', trigger: 'blur' }]
    }, {
        type: 'input',
        label: '职位',
        model: 'title',
        span: 12,
        keyUpEnter: 'handleFilter',
        placeholder: "多个故障种类用英文逗号分隔",
        rules: [{ required: true, message: '故障种类配置', trigger: 'blur' }]
    }, {
        type: 'input',
        label: '账号类别',
        span: 12,
        model: 'title',
        keyUpEnter: 'handleFilter',
        placeholder: "多个故障种类用英文逗号分隔",
        rules: [{ required: true, message: '故障种类配置', trigger: 'blur' }]
    }, {
        type: 'input',
        label: '登录账号',
        span: 12,
        model: 'title',
        keyUpEnter: 'handleFilter',
        placeholder: "多个故障种类用英文逗号分隔",
        rules: [{ required: true, message: '故障种类配置', trigger: 'blur' }]
    }, {
        type: 'input',
        label: '密码',
        model: 'title',
        span: 12,
        keyUpEnter: 'handleFilter',
        placeholder: "多个故障种类用英文逗号分隔",
        rules: [{ required: true, message: '故障种类配置', trigger: 'blur' }]
    }]
}

//整理后的表单配置
const editFormColumn = [{
    formName: "维修配置",
    formRef: 'table3', //表单ref
    formModel: repairedInfo.formModel, //表单model
    formComponent: repairedInfo.formComponent,
    formName: repairedInfo.title, //表单标题
    formStyle: "box-margin-card"

}]
const data = {
    equipment: equipment,
    tableColumn: tableColumn,
    dataComponent: dataComponent,
    dataModel: dataModel,
    editFormColumn: editFormColumn
}
export default data